package demo.hello;

import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

@Modules(scanPackage=true)
/*
@Ok("json")
@Fail("json")*/
@IocBy(type=ComboIocProvider.class,args={
	"*org.nutz.ioc.loader.json.JsonLoader","datasource_sqlserver.js",
	"*org.nutz.ioc.loader.annotation.AnnotationIocLoader","demo.hello"
})
public class MainModule {
	
	@At("/hello")
	@Ok("jsp:jsp.hello")
	public String doHello(){
		return "Hello Nutz";
	}
}
